# 注意每行不要超过132个字符

#以下是经常需要的关键参数
alpha_steps_per_mm                78.7402         # X轴每走1mm 所需脉冲数，
                                                  #例如 200步电机 16细分 用20-2GT同步轮：200*16/40=80
beta_steps_per_mm                 78.7402         # Y轴每走1mm 所需脉冲数
gamma_steps_per_mm                400             # Z轴每走1mm 所需脉冲数
extruder.hotend.steps_per_mm      90              # E0轴每走1mm 所需脉冲数

alpha_current                     1.0             # X轴电流大小 单位为安培
beta_current                      1.0             # Y轴电流大小
gamma_current                     1.0             # Z轴电流大小
delta_current                     1.0              # E0轴电流大小

alpha_dir_pin                     0.5             # X轴转动方向，在后面增加 ! 可让电机反转
beta_dir_pin                      0.11!           # Y轴转动方向，在后面增加 ! 可让电机反转
gamma_dir_pin                     0.20            # Z轴转动方向，在后面增加 ! 可让电机反转
extruder.hotend.dir_pin           0.22            # E0轴转动方向，在后面增加 ! 可让电机反转

network.ip_address                192.168.3.221    # IP地址
network.ip_mask                   255.255.255.0    # 子网掩码
network.ip_gateway                192.168.3.1      # 网关


#---------------------------------------------------------------------------
#以下是可能需要修改的参数


default_feed_rate                            4000            # 默认速度 ( mm/分钟 ) for G1/G2/G3 moves
default_seek_rate                            4000            # 默认速度 ( mm/分钟 ) for G0 moves
acceleration                                 500             # 加速度 mm/平方秒.
z_acceleration                               60              # Z轴加速度
junction_deviation                           0.02            # 类似Marlin的 "max_jerk"
                                                             # 数值越小，电机运行效果越好，但是速度越慢

x_axis_max_speed                             10000            # X轴最大速度 mm/min
y_axis_max_speed                             10000            # Y轴最大速度 mm/min
z_axis_max_speed                             100              # Z轴最大速度 mm/min

alpha_max_rate                               10000.0          # 要和x_axis_max_speed   一致
beta_max_rate                                10000.0          # 要和y_axis_max_speed   一致
gamma_max_rate                               100.0            # 要和z_axis_max_speed   一致

extruder.hotend.default_feed_rate            600              # E0默认速度 ( mm/分钟 )
extruder.hotend.acceleration                 500              # E0轴加速度
extruder.hotend.max_speed                    50               # mm/s

alpha_min_endstop                            1.24^!           # X轴min限位开关，在后面增加 ! 可设置常开还是常闭 
beta_min_endstop                             1.26^!           #Y轴min限位开关，在后面增加 ! 可设置常开还是常闭 
gamma_min_endstop                            1.28^!           #Z轴min限位开关，在后面增加 ! 可设置常开还是常闭


#打印头E0设置


extruder.hotend.enable                          true             # Whether to activate the extruder module at all. All configuration is ignored if false
extruder.hotend.step_pin                        2.3              # Pin for extruder step signal
extruder.hotend.en_pin                          0.21             # Pin for extruder enable signal

temperature_control.hotend.enable            true             # 
temperature_control.hotend.thermistor_pin    0.24             # 
temperature_control.hotend.heater_pin        2.7              # 
temperature_control.hotend.thermistor        RRRF100K         # 
temperature_control.hotend.set_m_code        104              #
temperature_control.hotend.set_and_wait_m_code 109            #
temperature_control.hotend.designator        T                #


# 双打印头设置，如果需要使用双打印头，需要去掉以下设置的注释

#extruder.hotend2.enable                          true             # 
#extruder.hotend2.steps_per_mm                    90               # E1轴每走1mm 所需脉冲数
#extruder.hotend2.default_feed_rate               600              # E1默认速度 ( mm/分钟 )
#extruder.hotend2.acceleration                    500              # E1轴加速度
#extruder.hotend2.max_speed                       50               # mm/s
#extruder.hotend2.step_pin                        2.8              # 
#extruder.hotend2.dir_pin                         2.13             #  E1轴转动方向，在后面增加 ! 可让电机反转
#extruder.hotend2.en_pin                          4.29             # 
#epsilon_current                                  1.2              # E1电流大小

#temperature_control.hotend2.enable            true             # 
#temperature_control.hotend2.thermistor_pin    0.25             # 
#temperature_control.hotend2.heater_pin        2.6             # 
#temperature_control.hotend2.thermistor        RRRF100K        # 
#temperature_control.hotend2.set_m_code        104              #
#temperature_control.hotend2.set_and_wait_m_code 109            #
#temperature_control.hotend2.designator        T1               #




#---------------------------------------------------------------------
#以下是尽量不要修改，除非你有深入了解


mm_per_arc_segment                           0.5              # Arcs are cut into segments ( lines ), this is the length for
                                                              # these segments.  Smaller values mean more resolution,
                                                              # higher values mean faster computation
mm_per_line_segment                          5                # Lines can be cut into segments ( not usefull with cartesian
                                                              # coordinates robots ).
planner_queue_size                           32               # DO NOT CHANGE THIS UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING
microseconds_per_step_pulse                  1                # Duration of step pulses to stepper drivers, in microseconds
base_stepping_frequency                      100000           # Base frequency for stepping, higher gives smoother movement
acceleration_ticks_per_second                1000             # Number of times per second the speed is updated

alpha_step_pin                               2.0              # Pin for alpha stepper step signal
alpha_en_pin                                 0.4              # Pin for alpha enable pin
beta_step_pin                                2.1              # Pin for beta stepper step signal
beta_en_pin                                  0.10             # Pin for beta enable
gamma_step_pin                               2.2              # Pin for gamma stepper step signal
gamma_en_pin                                 0.19             # Pin for gamma enable


uart0.baud_rate                              115200           # Baud rate for the default hardware serial port
second_usb_serial_enable                     true            # This enables a second usb serial port (to have both pronterface
                                                              # and a terminal connected)
pause_button_enable                          true             # Pause button enable




laser_module_enable                          false            # Whether to activate the laser module at all. All configuration is
                                                              # ignored if false.

#热床设置
temperature_control.bed.enable               true             #
temperature_control.bed.thermistor_pin       0.23             #
temperature_control.bed.heater_pin           2.5              #  2.5
temperature_control.bed.thermistor           RRRF100K    # see http://smoothieware.org/temperaturecontrol#toc5
#temperature_control.bed.beta                3960             # or set the beta value

temperature_control.bed.set_m_code           140              #
temperature_control.bed.set_and_wait_m_code  190              #
temperature_control.bed.designator           B                #

#temperature_control.bed.bang_bang            false           # set to true to use bang bang control rather than PID
#temperature_control.bed.hysteresis           2.0             # set to the temperature in degrees C to use as hysteresis
                                                              # when using bang bang

# 风扇设置
switch.fan.enable                            true             #
switch.fan.input_on_command                  M106             #
switch.fan.input_off_command                 M107             #
switch.fan.output_pin                        2.4              #
switch.fan.output_type                       pwm              # pwm output settable with S parameter in the input_on_comand


#限位开关设置
endstops_enable                              true             # the endstop module is enabled by default and can be disabled here

alpha_max_endstop                            1.25^            # 
alpha_homing_direction                       home_to_min      # or set to home_to_max and set alpha_max
alpha_min                                    0                # this gets loaded after homing when home_to_min is set
alpha_max                                    250              # this gets loaded after homing when home_to_max is set

beta_max_endstop                             1.27^            #
beta_homing_direction                        home_to_min      #
beta_min                                     0                #
beta_max                                     250              #

gamma_max_endstop                            1.29^            #
gamma_homing_direction                       home_to_min      #
gamma_min                                    0                #
gamma_max                                    120              #


alpha_fast_homing_rate_mm_s                  50               # feedrates in mm/second
beta_fast_homing_rate_mm_s                   50               # "
gamma_fast_homing_rate_mm_s                  4                # "
alpha_slow_homing_rate_mm_s                  25               # "
beta_slow_homing_rate_mm_s                   25               # "
gamma_slow_homing_rate_mm_s                  2                # "

alpha_homing_retract_mm                      5                # distance in mm
beta_homing_retract_mm                       5                # "
gamma_homing_retract_mm                      1                # "

#endstop_debounce_count                       100              # uncomment if you get noise on your endstops, default is 100

# 自动调平设置
zprobe.enable                                false           # set to true to enable a zprobe
zprobe.probe_pin                             1.28!^          # pin probe is attached to if NC remove the !
zprobe.slow_feedrate                         5               # mm/sec probe feed rate
#zprobe.debounce_count                       100             # set if noisy
zprobe.fast_feedrate                         100             # move feedrate mm/sec
zprobe.probe_height                          5               # how much above bed to start probe


# MKS 12864控制面板设置
panel.enable                                 true             # set to true to enable the panel code
panel.lcd                                   reprap_discount_glcd     #
panel.spi_channel                           0                 # spi channel to use  ; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin                            0.16              # spi chip select     ; GLCD EXP1 Pin 4
panel.encoder_a_pin                         3.25!^            # encoder pin         ; GLCD EXP2 Pin 3
panel.encoder_b_pin                         3.26!^            # encoder pin         ; GLCD EXP2 Pin 5
panel.click_button_pin                      1.30!^            # click button        ; GLCD EXP1 Pin 2
panel.buzz_pin                              1.31              # pin for buzzer      ; GLCD EXP1 Pin 1
panel.back_button_pin                       2.11!^            # back button         ; GLCD EXP2 Pin 8
panel.external_sd                     true              # set to true if there is an extrernal sdcard on the panel
panel.external_sd.spi_channel         1                 # set spi channel the sdcard is on
panel.external_sd.spi_cs_pin          0.28              # set spi chip select for the sdcard (or any spare pin)
panel.external_sd.sdcd_pin            0.27!^            # sd detect signal (set to nc if no sdcard detect) (or any spare pin)

panel.menu_offset                            1                 # some panels will need 1 here
panel.alpha_jog_feedrate                     6000              # x jogging feedrate in mm/min
panel.beta_jog_feedrate                      6000              # y jogging feedrate in mm/min
panel.gamma_jog_feedrate                     200               # z jogging feedrate in mm/min
panel.hotend_temperature                     185               # temp to set hotend when preheat is selected
panel.bed_temperature                        60                # temp to set bed when preheat is selected



# 自定义功能设置 
#Example of a custom menu entry, which will show up in the Custom entry.
# NOTE _ gets converted to space in the menu and commands, | is used to separate multiple commands
custom_menu.power_on.enable                true              #
custom_menu.power_on.name                  Power_on          #
custom_menu.power_on.command               M80               #

custom_menu.power_off.enable               true              #
custom_menu.power_off.name                 Power_off         #
custom_menu.power_off.command              M81               #

currentcontrol_module_enable                  true             #
return_error_on_unhandled_gcode              false            #


#网络设置
network.enable                               true            # enable the ethernet network services
network.webserver.enable                     true             # enable the webserver
network.telnet.enable                        true             # enable the telnet server


